import {customeStruct} from '../utils';
const itf = customeStruct.interface;

export const InitDataStruct = itf({
    payload: itf({
        isDealerUser: 'boolean',
    })
});

const content = {
    id: 'string',
    branchCode: 'string',
    vehicleSalesOrgCode: 'string',
    dealerCode: 'string',
    rebateNo: 'string?|null',
    date: 'string',
    time: 'string',
    summary: 'string?|null',
    vehicleRebateTypeCode: 'string?|null',
    vehicleRebateTypeName: 'string?|null',
    orderCode: 'string?|null',
    changeType: 'string?|null',
    rewardAmount: 'number?|null',
    rewardedSum: 'number?|null'
};

export const List = itf({
    payload: itf({
        content: [itf(Object.assign(content))]
    })
});

